import React, { Component } from 'react'
import { Swiper } from 'react-vant';
const images = [
    'https://img.yzcdn.cn/vant/apple-1.jpg',
    'https://img.yzcdn.cn/vant/apple-2.jpg',
    'https://img.yzcdn.cn/vant/apple-3.jpg',
    'https://img.yzcdn.cn/vant/apple-4.jpg',
    'https://img.yzcdn.cn/vant/apple-5.jpg',
    'https://img.yzcdn.cn/vant/apple-6.jpg',
    'https://img.yzcdn.cn/vant/apple-7.jpg',
    'https://img.yzcdn.cn/vant/apple-8.jpg',
  ];

export class lbt extends Component {
  render() {
    return (
      <div>
          <Swiper>
              {images.length?images.map((item,index)=>{
                  return <Swiper.Item key={index}>
                      <img src={item} alt="" />
                  </Swiper.Item>
              }):'暂无图片'}
          </Swiper>
      </div>
    )
  }
}

export default lbt